package org.example.myleet.p942;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.JsonUtils;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue("[0,4,1,3,2]".equals(JsonUtils.toJson(solution.diStringMatch("IDID"))));
        Assert.isTrue("[0,1,2,3]".equals(JsonUtils.toJson(solution.diStringMatch("III"))));
        Assert.isTrue("[3,2,0,1]".equals(JsonUtils.toJson(solution.diStringMatch("DDI"))));
    }
}
